Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for registering and handling a new “AssignCodingAgent” prompt alongside existing tools, enabling users to assign multiple GitHub issues to the Copilot Coding Agent in bulk.
- Introduces
ServerPrompttype and prompt registration methods in the toolset. - Registers the new prompt in the default GitHub “issues” toolset.
- Implements the
AssignCodingAgentPromptfunction and its handler inissues.go.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| pkg/toolsets/toolsets.go | Added ServerPrompt, NewServerPrompt, prompt storage, and registration methods. |
| pkg/github/tools.go | Chained AddPrompts to include the new AssignCodingAgentPrompt. |
| pkg/github/issues.go | Defined AssignCodingAgentPrompt with messages and handler logic. |
Comments suppressed due to low confidence (6)
pkg/toolsets/toolsets.go:43
- Add a Go doc comment above
NewServerPromptto describe its purpose and usage.
func NewServerPrompt(prompt mcp.Prompt, handler server.PromptHandlerFunc) ServerPrompt {
pkg/toolsets/toolsets.go:56
- Add a Go doc comment for the
ServerPrompttype to explain its fields and intended use.
// ServerPrompt represents a prompt that can be registered with the MCP server.
pkg/toolsets/toolsets.go:113
- Add a Go doc comment for
AddPromptsto clarify that it registers one or more prompts on the toolset.
func (t *Toolset) AddPrompts(prompts ...ServerPrompt) *Toolset {
pkg/toolsets/toolsets.go:138
- Document
RegisterPrompts, noting that it registers all added prompts on the MCP server when the toolset is enabled.
func (t *Toolset) RegisterPrompts(s *server.MCPServer) {
pkg/github/issues.go:936
- [nitpick] The prompt ID
AssignCodingAgentuses PascalCase; for consistency with snake_case tool IDs (e.g.,assign_copilot_to_issue), consider usingassign_coding_agent.
return mcp.NewPrompt("AssignCodingAgent",
pkg/github/issues.go:935
- There are no unit tests for the new
AssignCodingAgentPromptfunction or its handler; consider adding tests to verify the generated message sequence and parameter validation.
func AssignCodingAgentPrompt(t translations.TranslationHelperFunc) (tool mcp.Prompt, handler server.PromptHandlerFunc) {
JoannaaKL
approved these changes
Jun 24, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
ce77820 to
a00617b
Compare
nickytonline
pushed a commit
to nickytonline/github-mcp-http
that referenced
this pull request
Oct 4, 2025
* add in an assign copilot prompt * Update pkg/github/issues.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a prompt that assigns the Coding Agent to multiple tasks in a specified GitHub repository, validating first if they are clear enough to assign.
Example
Rendered prompt
After listing issues, it proceeds to do exactly as hoped